package com.lionel.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: liucan
 * @Date: 2019/2/2 15:54
 * @desc: 基础实体类
 **/
public class BaseDomain implements Serializable {
    /**
     * 模拟数据的自增id（这里采用时间戳 避免重复）
     */
    private Long id = System.currentTimeMillis();
    /**
     * 创建时间
     */
    private Date createTime = new Date();
    /**
     * 是否可用
     */
    private Boolean yn = true;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getYn() {
        return yn;
    }

    public void setYn(Boolean yn) {
        this.yn = yn;
    }
}
